package jingTai;

public class Stu {
    private String name;
    private int age;
    static String add;
    public Stu() {
    }
    public void show(){
        System.out.println("这是成员方法");

    }
    public static void showStatic(){
        System.out.println("这是静态方法");
    }
    public static String getAdd() {
        return add;
    }

    public static void setAdd(String add) {
        Stu.add = add;
    }

    public Stu(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
